package com.contact.util.util.search;

import java.util.List;

import org.apache.catalina.users.AbstractUser;

import com.contact.util.Identifiable;
import com.trg.search.ISearch;

public interface SearchableService<T extends AbstractUser> {

	int count(ISearch search, T user);

	<RT> List<RT> search(ISearch search, T user);

	<RT extends Identifiable> RequestResults<RT> searchAndCount(ISearch search,
			T user);

}
